import request from '@/utils/request'

export function getListUser(data) {
    return request({
        url: '/api/console/staffInfo/queryList',
        method: 'post',
        data: data
    })
}

export function createItemUser(data) {
    return request({
        url: '/api/console/staffInfo/createInfo',
        method: 'post',
        data
    })
}

export function updateItemUser(data) {
    return request({
        url: '/api/console/staffInfo/editInfo',
        method: 'post',
        data
    })
}

export function deleteItemUser(query) {
    return request({
        url: '/user/delete',
        method: 'get',
        params: query
    })
}

export function updatePowerUser(query) {
    return request({
        url: '/user/updatePower',
        method: 'get',
        params: query
    })
}

export function userNoLogin(data) {
    return request({
        url: '/api/integrate/user/noLogin',
        method: 'post',
        data
    })
}

export function queryByPage(data) {
    return request({
        url: '/api/server/sysMesInfo/queryByPage',
        method: 'post',
        data
    })
}
